﻿package net.wangit.view.unit.component;

import net.wangit.Row;
import net.wangit.context.ActionContext;
import net.wangit.view.element.ElementComponent;
import net.wangit.view.unit.UnitComponent;
import net.wangit.view.unit.UnitWriter;
import net.wangit.view.unit.grid.Group;

public class ReportUnit extends UnitComponent {

	private static UnitWriter writer = new ReportUnitWriter();
	private String reportSource;
	private int reportExporter;
	private String reportWriter;

	public ReportUnit() {
	}

	protected void configure(Row row) {
		queryUnitId = row.get("lqu");
		reportSource = row.get("rs");
		reportExporter = row.getInt("re", 1);
		reportWriter = row.get("rw");
	}

	public void addElement2Group(ActionContext actioncontext, Group group1,
			ElementComponent elementcomponent) {
	}

	public UnitWriter getWriter() {
		return writer;
	}

	public String getShowMode() {
		return "s";
	}

	public int getReportExporter() {
		return reportExporter;
	}

	public String getReportSource() {
		return reportSource;
	}

	public String getReportWriter() {
		return reportWriter;
	}

}
